package com.immoc.repository;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

import com.immoc.entity.SupportAddress;

public interface SupportAddressRepository extends CrudRepository<SupportAddress, Long> {
	/**
	 * 获取所有对应行政级别的信息
	 * 
	 * @return
	 */
	List<SupportAddress> findAllByLevel(String level);

	SupportAddress findByEnNameAndLevel(String enName, String level);

	SupportAddress findByEnNameAndBelongTo(String enName, String belongTo);

	List<SupportAddress> findAllByLevelAndBelongTo(String level, String belongTo);

}
